image: node:18-alpine3.16

variables:
  TEXTBOOK_FILE_NAME: devops-textbook.docx
  TEXTBOOK_OUTPUT_DIRECTORY: "./textbook"
  DIRECTORY_WITH_MARKDOWN_FILES: "./website/docs"

stages:
  - build
  - upload
  - deploy

build:
  tags:
      - lab8
  stage: build
  script:
    - docker build -t myimage_name:$CI_COMMIT_SHORT_SHA ...

upload:
  tags:
      - lab8
  stage: upload
  script:
    - kind load docker-image myapp:${CI_COMMIT_SHORT_SHA}

deploy:
  tags:
      - lab8
  stage: deploy
  environment:
    name: production
  script:
    - kubectl get pods
